home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / tex / macros / contrib / xyps-l.tex < prev    next >
Encoding:
Text File  |  1995-03-15  |  2.0 KB  |  45 lines

  1. %% xyps-l.tex from $Id: xyps-l.doc,v 2.9 1994/06/09 14:38:56 ross Exp $
  2. %%
  3. %% XY-pic ``Line extension'' PostScript backend support.
  4. %% Copyright (c) 1993-1994 Ross Moore <ross@mpce.mq.edu.au>
  5. %%
  6. %% This file is part of the XY-pic package for graphs and diagrams in TeX.
  7. %% See the companion README and INSTALL files for further information.
  8. %% Copyright (c) 1991-1994 Kristoffer H. Rose <kris@diku.dk>
  9. %%
  10. %% The XY-pic package is free software; you can redistribute it and/or modify
  11. %% it under the terms of the GNU General Public License as published by the
  12. %% Free Software Foundation; either version 2 of the License, or (at your
  13. %% option) any later version.
  14. %%
  15. %% The XY-pic package is distributed in the hope that it will be useful, but
  16. %% WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  17. %% or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  18. %% for more details.
  19. %%
  20. %% You should have received a copy of the GNU General Public License along
  21. %% with this package; if not, write to the Free Software Foundation, Inc.,
  22. %% 675 Mass Ave, Cambridge, MA 02139, USA.
  23. %%
  24. \ifx\xypslloaded\relax \message{not reloaded}\endinput \fi
  25. \let\xypslloaded=\relax \xycatcodes
  26. \xyrequire{line}
  27. \xyrequire{ps}
  28. \xycatcodes
  29. \xydef@\xyPSprestyle@{\xyPSrawA@{\preXYstyle@@}}
  30. \xydef@\xyPSpoststyle@{\xyPSrawZ@{\postXYstyle@@}}
  31. \xyPSalternative@{\preXYstyle@}{prestyle}
  32. \xyPSalternative@{\postXYstyle@}{poststyle}
  33. \xydef@\xyPSlinewidth@{%
  34.  \edef\tmp@{\expandafter\removePT@\the\xylinethick@}%
  35.  \expandafter\xyPSlinewidth@@\expandafter{\tmp@}}
  36. \xydef@\xyPSlinewidth@@#1{\bgroup
  37.  \def\preStyle@@{\xyPSpre@}\def\postStyle@@{\xyPSpost@}%
  38.  \let\modPSboxz@=\modXYstyle@ 
  39.  \xyPSsplitPS@{#1 setlinewidth /xywidth{#1 setlinewidth}def }{}%
  40.  \toks@={\egroup\let\xy@style@=\relax \def\Drop@@}%
  41.  \expandafter\addtotoks@\expandafter{\expandafter{\Drop@@}\def\Connect@@}%
  42.  \expandafter\addtotoks@\expandafter{\expandafter{\Connect@@}}\the\toks@}
  43. \xyPSalternative@{\xylinewidth@}{linewidth}
  44. \xyendinput
  45.